package com.zhike.common.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@TableName("zhike_users_report")
@Data
public class Report implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(name = "type", value = "举报类型")
    private String type;

    @ApiModelProperty(name = "violationType", value = "违规类型")
    private String violationType;

    @ApiModelProperty(name = "nickname", value = "昵称")
    private String userId;


    @ApiModelProperty(name = "toUserId", value = "被举报人id")
    private String toUserId;

    @ApiModelProperty(name = "nickname", value = "昵称")
    private String gid;

    @ApiModelProperty(name = "concreteProblem", value = "具体问题")
    private String concreteProblem;

    @ApiModelProperty(name = "description", value = "具体描述")
    private String description;


    @ApiModelProperty(name = "img", value = "图片描述")
    private String img;

    @ApiModelProperty(name = "content", value = "消息内容id")
    private String content;


    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;


}
